using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace PCR.Converter
{
    public class MutilTrueVisibleConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            bool flag = false;
            foreach (object obj in values)
            {
                bool? flag2 = obj as bool?;
                if (flag2.HasValue && flag2.Value)
                {
                    flag = true;
                }
            }
            return (!flag) ? Visibility.Collapsed : Visibility.Visible;
        }

        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
        {
            return null;
        }
    }
}
